package cn.ex;


import java.util.Arrays;
import java.util.Date;
import java.util.Random;

public class Demo {
    public static void main(String[] args) {
        Random A = new Random();
        Date d = new Date();
        int[] n = new int[5];
        for (int i = 1; i < 10; i++) {
            n[i - 1] = A.nextInt(1, 100);
            //System.out.printf("%d  ",n);
            //生成随机数
        }


        Arrays.sort(n);
        System.out.println(Arrays.toString(n));
//无法排序


    }
}
